package com.fw.service.persistence;

import java.util.List;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.jpa.domain.Specification;

import com.fw.service.persistence.dto.MerchantProfile;

public interface MerchantProfilePersistenceService {

    public List<MerchantProfile> selectByMerchantIdAndStatus(String merchantId, String status);

    public List<MerchantProfile> selectByStatus(String status);
    
    public List<MerchantProfile> selectByNotStatus(String status);
    
    public List<Object> selectAllMerchantProfileId();
    
    public List<Object> selectAllCompanyNameEn();
    public List<Object> selectAllCompanyNameTh();
    
    public List<Object> selectAllURL();
    
    public List<Object> selectAllContact1Name();
    public List<Object> selectAllContact2Name();
    public List<Object> selectAllContact3Name();
    public List<Object> selectAllContact4Name();

    public MerchantProfile save(MerchantProfile merchantProfile);

    public MerchantProfile findOne(Long id);

    public Page<MerchantProfile> findAll(Specification<MerchantProfile> specification, PageRequest pageRequest);

}
